package study.alex.resumedb.gae;

import study.alex.resumedb.gae.model.GoogleDriveResumeBlob;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: alex
 * Date: 10.01.14
 * Time: 18:51
 * SVN $Id$
 */

public interface ResumeBlob {

    public String getId();

    public boolean storeBlob(byte[] body, String mimeType) throws ResumeBlobException, IOException;

    public boolean storeBlob(byte[] body, String mimeType, String name) throws ResumeBlobException, IOException;

    public byte[] getBlob() throws ResumeBlobException, IOException;

    public String getType();

    public boolean deleteBlob() throws ResumeBlobException, IOException;

    public long getMaxSize(String type) throws ResumeBlobException, IOException;

    public long getMaxSize() throws ResumeBlobException, IOException;

    public long getSize() throws ResumeBlobException, IOException;

    public String getPreviewURL() throws ResumeBlobException, IOException;

    public String getOpenURL() throws ResumeBlobException, IOException;

    public String getThumbnailLink() throws ResumeBlobException, IOException;

}
